package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimePhysicalcombsMapper;
import com.dime.physical.domain.DimePhysicalcombs;
import com.dime.physical.service.IDimePhysicalcombsService;

/**
 * 人员项目Service业务层处理
 * 
 * @author Tiny
 * @date 2023-09-18
 */
@Service
public class DimePhysicalcombsServiceImpl implements IDimePhysicalcombsService 
{
    @Autowired
    private DimePhysicalcombsMapper dimePhysicalcombsMapper;

    /**
     * 查询人员项目
     * 
     * @param id 人员项目主键
     * @return 人员项目
     */
    @Override
    public DimePhysicalcombs selectDimePhysicalcombsById(String id)
    {
        return dimePhysicalcombsMapper.selectDimePhysicalcombsById(id);
    }

    /**
     * 查询人员项目列表
     * 
     * @param dimePhysicalcombs 人员项目
     * @return 人员项目
     */
    @Override
    public List<DimePhysicalcombs> selectDimePhysicalcombsList(DimePhysicalcombs dimePhysicalcombs)
    {
        return dimePhysicalcombsMapper.selectDimePhysicalcombsList(dimePhysicalcombs);
    }

    /**
     * 新增人员项目
     * 
     * @param dimePhysicalcombs 人员项目
     * @return 结果
     */
    @Override
    public int insertDimePhysicalcombs(DimePhysicalcombs dimePhysicalcombs)
    {
        dimePhysicalcombs.setCreateTime(DateUtils.getNowDate());
        return dimePhysicalcombsMapper.insertDimePhysicalcombs(dimePhysicalcombs);
    }

    /**
     * 修改人员项目
     * 
     * @param dimePhysicalcombs 人员项目
     * @return 结果
     */
    @Override
    public int updateDimePhysicalcombs(DimePhysicalcombs dimePhysicalcombs)
    {
        dimePhysicalcombs.setUpdateTime(DateUtils.getNowDate());
        return dimePhysicalcombsMapper.updateDimePhysicalcombs(dimePhysicalcombs);
    }

    /**
     * 批量删除人员项目
     * 
     * @param ids 需要删除的人员项目主键
     * @return 结果
     */
    @Override
    public int deleteDimePhysicalcombsByIds(String[] ids)
    {
        return dimePhysicalcombsMapper.deleteDimePhysicalcombsByIds(ids);
    }

    /**
     * 删除人员项目信息
     * 
     * @param id 人员项目主键
     * @return 结果
     */
    @Override
    public int deleteDimePhysicalcombsById(String id)
    {
        return dimePhysicalcombsMapper.deleteDimePhysicalcombsById(id);
    }
}
